package com.itheima.springbootmybatisdemo.mapper;


import com.itheima.springbootmybatisdemo.pojo.Emp;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * TODO
 *
 * @Author mr.luo
 * @Date 15 4月 2025 17:10
 */
@Mapper
public interface EmpMapper {
    /**
     * 添加员工
     *
     * @param emp
     */
    @Insert("insert into emp(username,password,name,gender,phone,job,salary,image,entry_date,dept_id,create_time,update_time)" +
            " values(#{username},#{password},#{name},#{gender},#{phone},#{job},#{salary},#{image},#{entryDate},#{deptId},#{createTime},#{updateTime})")
    void addEmp(Emp emp);
}
